package com.trex.modules.tbl.place.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 作业场所Entity
 * @author jy
 * @version 2022-12-09
 */
@Table(name="tbl_zd_zycs", alias="a", label="作业场所信息", columns={
		@Column(name="rec_id", attrName="recId", label="rec_id", isPK=true),
		@Column(name="csbh", attrName="csbh", label="场所编号"),
		@Column(name="csmc", attrName="csmc", label="场所名称"),
		@Column(name="cjbh", attrName="cjbh", label="车间编号"),
		@Column(name="cjmc", attrName="cjmc", label="车间名称"),
		@Column(name="level", attrName="level", label="级别1车站级 2区调级 3 场所级"),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志"),
		@Column(name="user_code", attrName="userCode", label="user_code"),
		@Column(name="user_name", attrName="userName", label="user_name", queryType=QueryType.LIKE),
		@Column(name="upd_time", attrName="updTime", label="upd_time", isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="ip"),
	}, orderBy="a.rec_id DESC"
)
public class TblZdZycs extends DataEntity<TblZdZycs> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// rec_id
	private String csbh;		// 场所编号
	private String csmc;		// 场所名称
	private String cjbh;		// 车间编号
	private String cjmc;		// 车间名称
	private String level;		// 级别1车站级 2区调级 3 场所级
	private String deleFlag;		// 删除标志
	private String userCode;		// user_code
	private String userName;		// user_name
	private Date updTime;		// upd_time
	private String ip;		// ip

	public TblZdZycs() {
		this(null);
	}
	
	public TblZdZycs(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
	@Size(min=0, max=6, message="场所编号长度不能超过 6 个字符")
	public String getCsbh() {
		return csbh;
	}

	public void setCsbh(String csbh) {
		this.csbh = csbh;
	}
	
	@Size(min=0, max=50, message="场所名称长度不能超过 50 个字符")
	public String getCsmc() {
		return csmc;
	}

	public void setCsmc(String csmc) {
		this.csmc = csmc;
	}
	
	@Size(min=0, max=6, message="车间编号长度不能超过 6 个字符")
	public String getCjbh() {
		return cjbh;
	}

	public void setCjbh(String cjbh) {
		this.cjbh = cjbh;
	}
	
	@Size(min=0, max=50, message="车间名称长度不能超过 50 个字符")
	public String getCjmc() {
		return cjmc;
	}

	public void setCjmc(String cjmc) {
		this.cjmc = cjmc;
	}
	
	@Size(min=0, max=2, message="级别1车站级 2区调级 3 场所级长度不能超过 2 个字符")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
	@Size(min=0, max=1, message="删除标志长度不能超过 1 个字符")
	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	
	@Size(min=0, max=20, message="user_code长度不能超过 20 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Size(min=0, max=50, message="user_name长度不能超过 50 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
	@Size(min=0, max=15, message="ip长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
}